<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>

<h1>Bienvenido al <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>

<h3>Minutas del sistema:</h3>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'minuta-grid',
	'dataProvider'=>$model->search(),
	//'filter'=>$model,
	'columns'=>array(
                //'id',
                array(
                    'header' => 'Folio',
                    'value' => 'str_pad((int) $data->id,5,"0",STR_PAD_LEFT)',
                ),
		'objetivo',
		'lugar',
		'fecha',
		'hora_inicio',
		'hora_fin',
		/*
		'fecha_sistema',
		'id_usuario_creador',
		*/
		array(
			'class'=>'CButtonColumn',
                    
                        'template'=>'{view}',
                        'buttons'=>array (
                                'view' => array(
                                    'url' => 'Yii::app()->controller->createUrl("minuta/view",array("id"=>$data->id))'
                                ),
                        ),
		),
	),
)); ?>

<?php
     /*$this->widget('ext.mPrint.mPrint', array(
          //'title' => 'title',          //the title of the document. Defaults to the HTML title
          'tooltip' => 'Imprimir',        //tooltip message of the print icon. Defaults to 'print'
          'text' => 'Imprimir',   //text which will appear beside the print icon. Defaults to NULL
          'element' => '#imprimir',        //the element to be printed.
         // 'exceptions' => array(       //the element/s which will be ignored
            //  '.summary',
            //  '.search-form'
          //),
          'publishCss' => true,       //publish the CSS for the whole page?
          //'visible' => Yii::app()->user->checkAccess('print'),  //should this be visible to the current user?
         'visible' => true,
          //'alt' => 'print',       //text which will appear if image can't be loaded
          //'debug' => true,            //enable the debugger to see what you will get
          'id' => 'print-div'         //id of the print link
      ));*/
?>